package br.com.amadeus.android.entities;

import java.util.ArrayList;

public class Goal {

	private int id;
	private String definition;
	private String beginDate;
	private String endDate;
	private int avgStudyTime;
	private CourseUser courseUser;
	private boolean resolved;
	private ArrayList<Task> taskList;

	public Goal(int id) {
		super();
		this.id = id;
	}

	public Goal(int id, String description, String beginDate, String endDate,
			int avgStudyTime, CourseUser courseUser, boolean resolved) {
		super();
		this.id = id;
		this.definition = description;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.avgStudyTime = avgStudyTime;
		this.courseUser = courseUser;
		this.resolved = resolved;
	}
	
	public Goal(String description, String beginDate, String endDate,
			int avgStudyTime, CourseUser courseUser, boolean resolved) {
		super();
		this.definition = description;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.avgStudyTime = avgStudyTime;
		this.courseUser = courseUser;
		this.resolved = resolved;
	}


	public Goal(int id, String definition, String beginDate, String endDate,
			int avgStudyTime, CourseUser courseUser, boolean resolved,
			ArrayList<Task> taskList) {
		super();
		this.id = id;
		this.definition = definition;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.avgStudyTime = avgStudyTime;
		this.courseUser = courseUser;
		this.resolved = resolved;
		this.taskList = taskList;
	}

	public ArrayList<Task> getTaskList() {
		return taskList;
	}

	public void setTaskList(ArrayList<Task> taskList) {
		this.taskList = taskList;
	}

	public boolean isResolved() {
		return resolved;
	}

	public void setResolved(boolean resolved) {
		this.resolved = resolved;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDefinition() {
		return definition;
	}

	public void setDefinition(String definition) {
		this.definition = definition;
	}

	public String getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public int getAvgStudyTime() {
		return avgStudyTime;
	}

	public void setAvgStudyTime(int avgStudyTime) {
		this.avgStudyTime = avgStudyTime;
	}

	public CourseUser getCourseUser() {
		return courseUser;
	}

	public void setCourseUser(CourseUser courseUser) {
		this.courseUser = courseUser;
	}
	
	@Override
	public String toString() {
		return this.getDefinition();
	}

}
